import { createApp } from 'vue'
// import './style.css'
//引入模板的全局的样式
// import '@/styles/index.scss'
// import '@/styles/reset.scss'
import '@/styles/index.scss'
import App from '@/App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

import 'virtual:svg-icons-register'
import gloalComponent  from '@/components';
import router  from '@/router/index';
import pinia from '@/store/index';
import './routeguard'; // 引入路由守卫

const app = createApp(App)

app.use(gloalComponent)
app.use(pinia)
app.use(router)
app.use(ElementPlus,{
    locale: zhCn,
    size: 'small' // 设置 Element Plus 的默认尺寸
})

app.mount('#app')
  
// console.log('current 环境',import.meta.env)